<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php $this->load->view('common/head');?>
<body class="no-skin">
<?php $this->load->view('common/header');?>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <?php $this->load->view('common/sidebar');?>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <?php $this->load->view('common/breadcrumbs');?>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">

                <?php $this->load->view('common/set');?>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" id="form" name="form" action="<?php echo site_url(X_URL.'into/update');?>" method="post" enctype="multipart/form-data">
                            <input type="hidden" name="into_id" value="<?php echo $into_id ?>">
                            <?php echo csrf_hidden();?>
                            <?php if(isset($user) and $user['user_group']!=4){?>
                            <div class="form-group">
                                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 提成数 </label>
                                <div class="col-sm-7">
                                    <input type="text" name="into_num" id="into_num" placeholder="提成数"
                                           class="col-xs-10" value="<?php if(isset($into)){ echo $into["into_num"];}?>">
                                </div>
                            </div>
                            <?php }?>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label no-padding-right" for="form-field-4"> 进度 </label>
                                <div class="col-sm-7">
                                    <select id="into_status" name="into_status" class="multiselect">
                                        <option value="0" <?php if(isset($into) && $into['into_status']==0){ echo 'selected="selected"';}?>>未开始</option>
                                        <option value="1" <?php if(isset($into) && $into['into_status']==1){ echo 'selected="selected"';}?>>制作中</option>
                                        <option value="2" <?php if(isset($into) && $into['into_status']==2){ echo 'selected="selected"';}?>>测试中</option>
                                        <option value="3" <?php if(isset($into) && $into['into_status']==3){ echo 'selected="selected"';}?>>已完成</option>
                                    </select>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 备注 </label>
                                <div class="col-sm-7">
                                    <textarea class="col-xs-10 " rows="4" id="into_text" name="into_text" value="<?php if(isset($into)){ echo $into["into_text"];}?>"></textarea>
                                </div>
                            </div>
                            <div class="col-md-offset-4 col-md-5">
                                <label class="col-sm-2 control-label no-padding-right" for="form-field-4"> </label>
                                <button class="btn btn-info submit" type="submit">
                                    <i class="icon-ok bigger-110"></i>
                                    提交
                                </button>
                                <button class="btn" type="reset">
                                    <i class="icon-undo bigger-110"></i>
                                    重置
                                </button>
                            </div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <?php $this->load->view('common/footer');?>
</div><!-- /.main-container -->

<?php $this->load->view('common/footerjs');?>
<!-- inline scripts related to this page -->

</body>
</html>
